

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<f:view>
    <html>
    <head>

        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>TestFire</title>
        <jsp:useBean id="nav" class="org.testfire.realm.control.NavBean"/>
        
        <link rel=stylesheet href="${nav.href_css_basic}" type="text/css">
        <script type="text/javascript" src="${nav.href_js_displayTools}"></script>
        <script type="text/javascript" src="${nav.href_js_md5}"></script>


    </head>
    <body>
    <div id="masthead">
        <h1 id="siteName">TestFire</h1>
        <c:if test="${pageContext.request.userPrincipal.name != null}"><span
            style="float:right ">Logged In: ${pageContext.request.userPrincipal.name}</span></c:if>
    <div id="globalNav">
        <h:form>
            <a id="href_home" href="${nav.href_home}">Home</a> |
            <c:choose>
                <c:when test="${pageContext.request.userPrincipal.name != null}">
                    <h:commandLink id="logout" action="nav_logout" actionListener="#{UserBean.userLogout}">
                        <h:outputText value="Log Out |"/>
                    </h:commandLink>
                </c:when>
                <c:otherwise>
                    <a id="href_account" href="${nav.href_account}">Log In</a> |
                </c:otherwise>
            </c:choose>
        </h:form>
    </div>


    <h2 id="pageName">Member Login</h2>

    <div id="breadCrumb">
        <a id="href_register" href="${nav.href_register}">New User Registration</a>
    </div>
    </div>
    <!-- end masthead -->

    <div id="content">
        <div class="content_div">
            <h:form id="ch">
            <h:inputHidden id="salt" value="#{util.salt}"/>
            <h:inputHidden id="challenge" value="#{UserBean.challenge}"/>
        </h:form>
        <form id="security_form" onSubmit="createAuthCode('security_form','ch:salt','ch:challenge' )">

            <table width="86%" height="179" border="0">
                <tr style="height: 20%;">
                    <td width="16%" height="72">&nbsp;</td>
                    <td width="35%">&nbsp;</td>
                    <td width="31%">&nbsp;</td>
                    <td width="18%">&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><label for="j_username">User Name:</label></td>
                    <td><input id="j_username" name="j_username" size="20" maxlength="50" type="text">
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><label for="j_password">Password</label></td>
                    <td><input id="j_password" type="password" size="20" maxlength="50" name="j_password">
                    </td>
                    <td>&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td><a href="#">Lost Password?</a></td>
                    <td><input id="submit_btn" type="submit" value="Submit">
                    </td>
                    <td>&nbsp;</td>
                </tr>
            </table>


        </form>

        <h3>&nbsp;</h3>
    </div>
    
</div>
<!-- end content -->

</body>
</html>
</f:view>
